package com.example.demo.controller;

import com.example.demo.bo.MakeWaterMark;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: linliquan
 * @date: 2018/10/9 09:40
 * @description:
 */
@RestController
@RequestMapping("/waterTest")
@CrossOrigin(origins = {"http://127.0.0.1:9001,item.puyunsoft.com"})
public class TestController {
    @Autowired
    private MakeWaterMark markWaterMark;

    /**
     * @param
     * @author: linliquan
     * @date: 2018/10/9 10:55
     * @description: 获取的总的列表
     */
    @RequestMapping(value = "/testWord")
    public String testWord(@RequestParam Map<String, Object> params) {

        System.out.println("你好谢谢");


        return markWaterMark.watermarkWord();
    }

    /**
     * @param
     * @author: linliquan
     * @date: 2018/10/9 10:55
     * @description: 获取的总的列表
     */
    @RequestMapping(value = "/testImage")
    public String testImage(@RequestParam Map<String, Object> params) {

        System.out.println("你好谢谢");


        return markWaterMark.watermarkImage();
    }






}
